package org.example.javademo.test08.demo2;

/**
 * @author gwf
 * @date 2025-03-04
 */
public class User {
    private Door door;
    public User(Door door){
        this.door = door;
    }
    public void openDoor(){
        door.open();
    }
    public void closeDoor(){
        door.close();
    }
}
